import request from '@/utils/request'
export const questionList = (params) => {
  return request({
    url: '/question/list',
    params
  })
}

export const questionStatus = (id) => {
  return request({
    url: '/question/status',
    method: 'post',
    data: {
      id
    }
  })
}
export const questionAdd = (data) => {
  return request({
    url: '/question/add',
    method: 'post',
    data
  })
}

export const subjectList = (params) => {
  return request({
    url: '/subject/list',
    params
  })
}
export const enterpriseList = (params) => {
  return request({
    url: '/enterprise/list',
    params
  })
}
export const questionOne = (id) => {
  return request({
    url: '/question/one',
    method: 'post',
    data: {
      id
    }
  })
}

export const questionEdit = (data) => {
  return request({
    url: '/question/edit',
    method: 'post',
    data
  })
}
export const questionRemove = (id) => {
  return request({
    url: '/question/remove',
    method: 'post',
    data: {
      id
    }
  })
}

